using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
using JoyfulHomeJourney.BackEnd.Infrastructure.Tools;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class ActivityParticipantsExtend
{
		public static ResponseActivityParticipantsDto ToResponseDto(this ActivityParticipants entity)
{			return new ResponseActivityParticipantsDto
			{
				id = entity.ApId,
				name = entity.ApName,
				gender = entity.ApGender,
				age = entity.ApAge,
				phone = entity.ApPhone,
				email = entity.ApEmail,
				industry = entity.ApIndustry,
				eventId = entity.ApEventId,
				createAt = entity.ApCreateAt,
				createAtStr =Tools.TimeToString(entity.ApCreateAt),
			};
		}
	}
}
